package client.popups.wizard;

import javax.swing.JPanel;
import javax.swing.JLabel;
import javax.swing.JTextArea;
import javax.swing.GroupLayout;
import javax.swing.GroupLayout.Alignment;
import javax.swing.JScrollPane;

public class AppointmentLocationDescription extends JPanel{
	
	private JTextArea descriptionTextArea;	
	public AppointmentLocationDescription() {
		
		JLabel lblBeskrivelse = new JLabel("Beskrivelse:");
		
		JScrollPane scrollPane = new JScrollPane();
		
		descriptionTextArea = new JTextArea();
		scrollPane.setViewportView(descriptionTextArea);
		GroupLayout groupLayout = new GroupLayout(this);
		groupLayout.setHorizontalGroup(
			groupLayout.createParallelGroup(Alignment.LEADING)
				.addGroup(groupLayout.createSequentialGroup()
					.addGap(10)
					.addGroup(groupLayout.createParallelGroup(Alignment.LEADING)
						.addComponent(lblBeskrivelse, GroupLayout.PREFERRED_SIZE, 65, GroupLayout.PREFERRED_SIZE)
						.addComponent(scrollPane, GroupLayout.PREFERRED_SIZE, 180, GroupLayout.PREFERRED_SIZE)))
		);
		groupLayout.setVerticalGroup(
			groupLayout.createParallelGroup(Alignment.LEADING)
				.addGroup(groupLayout.createSequentialGroup()
					.addGap(11)
					.addComponent(lblBeskrivelse)
					.addGap(12)
					.addComponent(scrollPane, GroupLayout.PREFERRED_SIZE, 111, GroupLayout.PREFERRED_SIZE))
		);
		setLayout(groupLayout);
	}
	public JTextArea getDescriptionTextArea() {
		return descriptionTextArea;
	}
}
